/*******************************************************************************
 * Copyright (c) 2011 LegSem.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl-3.0.txt
 * 
 * Contributors:
 *     LegSem - initial API and implementation
 ******************************************************************************/
package com.legstar.eci.xmi.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("arrayDescr")
public class ArrayDescr {

    @XStreamAsAttribute
    private String alignmentKind;

    @XStreamAsAttribute
    private int lowerBound;

    @XStreamAsAttribute
    private int stride;

    @XStreamAsAttribute
    private boolean strideInBit;

    @XStreamAsAttribute
    private int upperBound;

    @XStreamAsAttribute
    private String id;

    /** {@inheritDoc} */
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("[");
        sb.append("alignmentKind" + ":'" + alignmentKind + "'");
        sb.append(",");
        sb.append("lowerBound" + ":" + lowerBound + "");
        sb.append(",");
        sb.append("stride" + ":" + stride + "");
        sb.append(",");
        sb.append("strideInBit" + ":" + strideInBit + "");
        sb.append(",");
        sb.append("upperBound" + ":" + upperBound + "");
        sb.append(",");
        sb.append("id" + ":'" + id + "'");
        sb.append("]");
        return sb.toString();
    }

    /**
     * @return the alignmentKind
     */
    public String getAlignmentKind() {
        return alignmentKind;
    }

    /**
     * @return the lowerBound
     */
    public int getLowerBound() {
        return lowerBound;
    }

    /**
     * @return the stride
     */
    public int getStride() {
        return stride;
    }

    /**
     * @return the strideInBit
     */
    public boolean isStrideInBit() {
        return strideInBit;
    }

    /**
     * @return the upperBound
     */
    public int getUpperBound() {
        return upperBound;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

}
